{% extends "base.html" %}
{% block content%}
	<h3>{{date}}的团购
		<span class="greylight-color align_right"> 排序 : 
		<select name="" onchange="change_order(this.value);" class="order_by_type">
			<option value="-">请选择排序方式</option>
			<option value="0">按流行度排序</option>
			<option value="1">按售出数量排序</option>
			<option value="2">按折扣排序</option>
			<option value="3">按价格排序</option>
		</select>
		</span>
	</h3>
	<div class="content" id="item-content">
		<ul>
			{% for group in groups %}
				<li class="item" site_key="{{group.site.key_value}}" site_pop="{{group.site.pop}}" discount="{{group.discount}}" sold_total="{{group.sold_total}}" price="{{group.original_price}}"  link="{{group.link}}">
					<div class="detail">
						<p class="desc">
							<a target="_blank" class="site" href="{{group.site.link}}">{{ group.site.name}}</a> | <a href="{{group.link}}" target="_blank" class="group_link">{{group.title_short}}</a>
						</p>
						<div class="figure">
							<a target="_blank"  href="{{group.link}}">
								<img width="132" height="91" src="{{group.picture}}">
							</a>
						</div>
						<div class="sold-total"><span>{{group.sold_total}}</span>人购买</div>
						<div class="price-info">
							<ul>
								<li class="cur-price">
								现价:<strong>¥{{group.current_price}}</strong>
								</li>
								<li>
								原价:<strong><strike>¥{{group.original_price}}</strike></strong>
								</li>
								<li>
								折扣:<strong><span>{{group.discount}}折</span></strong>
								</li>
							</ul>
						</div>
				</div>
			</li>
			{% endfor %}
		</ul>
	</div>
{% endblock %}